package com.nuboat.easyjsf.action;

import com.nuboat.easyjsf.view.UserView;
import java.util.HashMap;
import java.util.Map;
import javax.faces.bean.ManagedBean;

/**
 *
 * @author nuboat
 */
@ManagedBean
public class ExpressionAction extends BaseAction {
    private UserView userView;
    private String[] listdata;
    private Map<String, String> mapdata;

    public ExpressionAction() {
        userView = new UserView();
        listdata = new String[3];
        mapdata = new HashMap<String, String>();

        userView.setName("Peerapat");
        userView.setUsername("nuboat");
        userView.setGroup("petdo");

        listdata[0] = "Books";
        listdata[1] = "Internet";
        listdata[2] = "สาวหมวย";

        mapdata.put("HOTMAIL", "nuboat@live.com");
        mapdata.put("GMAIL", "nuboat@gmail.com");

    }

    public String sayhi() {
        return null;
    }

    /**
     * @return the userView
     */
    public UserView getUserView() {
        return userView;
    }

    /**
     * @param userView the userView to set
     */
    public void setUserView(UserView userView) {
        this.userView = userView;
    }

    /**
     * @return the listdata
     */
    public String[] getListdata() {
        return listdata;
    }

    /**
     * @param listdata the listdata to set
     */
    public void setListdata(String[] listdata) {
        this.listdata = listdata;
    }

    /**
     * @return the mapdata
     */
    public Map<String, String> getMapdata() {
        return mapdata;
    }

    /**
     * @param mapdata the mapdata to set
     */
    public void setMapdata(Map<String, String> mapdata) {
        this.mapdata = mapdata;
    }

}